package org.gen.pojo.config;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.gen.pojo.util.MavenModuleUtil;

/**
 * Created by zhuge on 2017/10/11.
 */
public abstract class GenConfig {

	public static final String moduleRootPath = MavenModuleUtil.getModuleRootPath();

	public static final String template_path = moduleRootPath + "/src/main/resources/templates/";
	public static final String java_source_path = moduleRootPath + "/src/main/java/";

	// public static final String jdbcurl =
	// "jdbc:mysql://192.168.25.135:3306/pygdb";
	public static final String jdbcurl = "jdbc:mysql://127.0.0.1:3306/pygdb";
	public static final String driverClassName = "com.mysql.jdbc.Driver";
	public static final String username = "root";
	public static final String password = "root";
	public static final String packageName = "com.pyg.pojo";
	public static final String mapperPackageName = "com.pyg.mapper";
	public static final String mapperTestPackageName = "com.pyg.gen.testmapper";
	public static final String serviceInterfacePackageName = "com.pyg.goods.service";
	public static final String controllerPackageName = "com.pyg.manager.controller";
	public static final String jsControllerPackageName = "com.pyg.js.controller";
	public static final String jsServicePackageName = "com.pyg.js.service";
	public static final String pojoHtmlPackageName = "com.pyg.html";

	public static final Map configPersonal() {
		Map<String, Object> root = new HashMap<String, Object>();
		root.put("packageName", GenConfig.packageName);
		// java类的 package ...
		root.put("controllerPackageName", GenConfig.controllerPackageName);
		root.put("serviceInterfacePackageName", GenConfig.serviceInterfacePackageName);
		root.put("mapperPackageName", GenConfig.mapperPackageName);
		root.put("author", "zhuliangcai");
		root.put("email", "zhuliangcai@itcast.cn");
		root.put("date", new Date());
		return root;
	}

}
